import fetch from '@/utils/fetch'

export function sendsms (mobile, smscode) {
  return fetch({
    url: '/Member/GetSmsCode',
    method: 'post',
    data: {
      mobile,
      smscode
    }
  })
}

export function regmember (mobile, smscode, openid, headpic) {
  return fetch({
    url: '/Member/Reg',
    method: 'post',
    data: {mobile, smscode, openid, headpic}
  })
}

export function checkmember (query) {
  return fetch({
    url: '/Member/CheckVaildMember',
    method: 'get',
    params: query
  })
}
